package cn.edu.gzhmt.goods.domain;

import java.io.Serializable;

import cn.edu.gzhmt.category.domain.Category;

/**
 * 商品的实体类
 * @author azhuo
 *
 */
public class Goods implements Serializable {

	private String gid; // 商品类别id
	private String gname; // 商品名称
	private Double price; // 商品价格
	private String image; // 商品图片
	private Category category; // 商品所属类别
	private String cid;
	private String parameter; // 商品参数
	private String desc; // 商品描述
	private Boolean gdel; // 商品是否已经删除
	private String promote; // 宣传商品类型

	public Goods() {
	}

	public Goods(String gid, String gname, Double price, String image,
			Category category, String cid, String parameter, String desc,
			Boolean gdel) {
		super();
		this.gid = gid;
		this.gname = gname;
		this.price = price;
		this.image = image;
		this.category = category;
		this.cid = cid;
		this.parameter = parameter;
		this.desc = desc;
		this.gdel = gdel;
	}

	public String getGid() {
		return gid;
	}

	public void setGid(String gid) {
		this.gid = gid;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getParameter() {
		return parameter;
	}

	public void setParameter(String parameter) {
		this.parameter = parameter;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Boolean getGdel() {
		return gdel;
	}

	public void setGdel(Boolean gdel) {
		this.gdel = gdel;
	}

	public String getPromote() {
		return promote;
	}

	public void setPromote(String promote) {
		this.promote = promote;
	}

	@Override
	public String toString() {
		return "Goods [gid=" + gid + ", gname=" + gname + ", price=" + price
				+ ", image=" + image + ", category=" + category + ", cid="
				+ cid + ", parameter=" + parameter + ", desc=" + desc
				+ ", gdel=" + gdel + ", promote=" + promote + "]";
	}

}
